package edu.spec.student.model.lecture;

import edu.spec.basic.model.enumeration.Status;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by MadFrog on 2017/5/11.
 */
@Entity
@Table(name = "t_lecture")
public class Lecture {

    private int id;
    // 主题
    private String title;
    // 概要
    private String summary;
    // 主讲人
    private String speaker;
    // 开始时间
    private Date startTime;
    // 持续时间
    private Integer duration;
    // 结束时间
    private Date endTime;
    // 地点
    private String location;
    // 注意事项
    private String notes;
    // 讲座海报，分辨率为320*200
    private String snapshoot;
    // 微信宣传新闻地址
    private String wxNewsUrl;
    // 状态
    private Status status;
    // 最大容纳人数
    private int maxSeat;
    // 记录创建时间
    private Date createDate;
    // 记录更新时间
    private Date updateDate;
    // 点赞数量
    private Integer likeNumber;

    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getSpeaker() {
        return speaker;
    }

    public void setSpeaker(String speaker) {
        this.speaker = speaker;
    }

    @Column(name = "start_time")
    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getSnapshoot() {
        return snapshoot;
    }

    public void setSnapshoot(String snapshoot) {
        this.snapshoot = snapshoot;
    }

    @Column(name = "wx_news_url")
    public String getWxNewsUrl() {
        return wxNewsUrl;
    }

    public void setWxNewsUrl(String wxNewsUrl) {
        this.wxNewsUrl = wxNewsUrl;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Column(name = "max_seat")
    public int getMaxSeat() {
        return maxSeat;
    }

    public void setMaxSeat(int maxSeat) {
        this.maxSeat = maxSeat;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    @Column(name = "create_date")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Column(name = "update_date")
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Column(name = "like_number")
    public Integer getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(Integer likeNumber) {
        this.likeNumber = likeNumber;
    }

    public Lecture() {
    }
}
